
    import request from '@/utils/request'
    // 查询队伍信息表列表
    export const listTeam = (query) => {
    return request({
        url: '/system/team/list',
        method: 'get',
        params: query
    })
    }
    // 查询队伍信息表详细
    export const getTeam = (teamId) => {
    return request({
        url: '/system/team/' + teamId,
        method: 'get'
    })
    }
    
    // 新增队伍信息表
    export const addTeam = (data) => {
    return request({
        url: '/system/team',
        method: 'post',
        data: data
    })
    }

    // 修改队伍信息表
    export const updateTeam = (data) => {    
    return request({
        url: '/system/team',
        method: 'put',
        data: data
    })
    }

    // 删除队伍信息表
    export const delTeam = (teamId) => {  
    return request({
        url: '/system/team/' + teamId,
        method: 'delete'
    })
    }
    //退出队伍
    export const exitTeam = (data) => {  
        return request({
            url: '/system/teacher/exitTeam',
            method: 'post',
            data: data
        })
    }

    //获取当前选中当前教师的队伍
    export const getCurrentTeacherTeam = (teacherId) => {  
    return request({
        url: '/system/team/teamTeacher/' + teacherId,
        method: 'get'
    })
    }
    
    // 导出队伍信息表
    export const exportTeam = (data) => {
    return request({
        url: '/system/team/export',
        method: 'post',
        data: data
    })
    }

    //获取当前可选教师
    export const getTeacher = () =>{
        return request({
            url:'/system/user/teacherList' ,
            method:'get',
        })
    }

    //提交队伍教师志愿
    export const submitTeacher = (data) =>{
        return request({
            url:'/system/team/teamTeacher' ,
            method:'post',
            data:data
        })
    }
    